<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@page import="comm.util.RequestManager"%>
<%@page import="comm.util.QuikHashMap"%>    
<%@page import="comm.util.CommUtil"%>
<%@page import="quik.article.ArticleProc"%>
<%
	QuikHashMap hm = RequestManager.getRequest(request);
	ArticleProc article = new ArticleProc();
	hm = article.getArticle(hm.get("ARTICLE_SEQ").toString());
%>
<div class="calledArticle">
	<div class="img"><a href="<%=request.getContextPath()%>/user/<%=hm.get("MEMBER_SEQ")%>"><img src="./data/userImage/<%=hm.get("MEMBER_SEQ")%>/<%=hm.get("MEMBER_IMG")%>" width="<%=CommUtil.IMG_WIDTH %>" height="<%=CommUtil.IMG_WIDTH %>"/></a></div>
	<div class="nickname"><a href="<%=request.getContextPath()%>/user/<%=hm.get("MEMBER_SEQ")%>"><%=hm.get("MEMBER_NICK") %></a></div>
	<div class="body"><%=CommUtil.addLinkToUrlPattern(CommUtil.htmlFiltering(hm.get("ARTICLE_CONTENT").toString()))%></div>
	<div class="fileArea">
		<%if(hm.get("FILE")!=null){ %>
			<%if(hm.get("DATA_TYPE").toString().equals("0")){//이미지  파일 %>
			<div><img src="./data/groupData/<%=session.getAttribute("SESSION_MEMBER_GROUPSEQ")%>/<%=hm.get("FILE")%>"/></div>
			<div><a href="./data/groupData/<%=session.getAttribute("SESSION_MEMBER_GROUPSEQ")%>/<%=hm.get("FILE")%>" target="_blank"><%=hm.get("ORIGIN_FILE")%></a></div>
			<%}else if(hm.get("DATA_TYPE").toString().equals("1")){ //이미지외의 파일들%>
			<div>DATA</div>
			<div><a href="./data/groupData/<%=session.getAttribute("SESSION_MEMBER_GROUPSEQ")%>/<%=hm.get("FILE")%>" target="_blank"><%=hm.get("ORIGIN_FILE")%></a></div>
			<%} %>
		<%}else if(hm.get("COMMENT")!=null){//링크정보 %>
			<div><a href="<%=hm.get("COMMENT")%>" target="_blank"><%=hm.get("COMMENT") %></a></div>
		<%} %>
	</div>
	<div class="date"><%=hm.get("ARTICLE_REGDATE") %></div>
</div>